package com.mingqijia.gassafety.db.mapper;
import com.mingqijia.gassafety.db.entity.Contacts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingqijia.gassafety.db.entity.MigrateContacts;
import com.mingqijia.gassafety.db.entity.vo.SendMessagePhonesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户留存的联系人表 Mapper 接口
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
@Mapper
@Repository
public interface ContactsMapper extends BaseMapper<Contacts> {


    List<Contacts> highestListByIds(@Param("ids")List<Integer> ids, @Param("spId")String spId);

    List<Map<String, Object>> selectInfo(@Param("con")String con);

    List<SendMessagePhonesVo> selectServicePeriodPhones(@Param("consumerId")Integer consumerId, @Param("levels")List<String> levels);

    void insertBatch(@Param("contactsList") List<MigrateContacts> contactsList);
}
